﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharedLib.MessageFramework;
using SharedLib.MessageFramework.Messages;

namespace SharedLib.MessageFramework.Handlers
{
    public abstract class TaskMessageHandler : IAppMessageHandler
    {
        public void ProcessMessage(IAppMessage msg)
        {
            if (msg != null && msg is TaskMessage)
            {
                ProcessMessage((TaskMessage)msg);
            }
            //TODO:Exception
        }

        protected virtual void ProcessMessage(TaskMessage msg)
        {
            
        }
    }


}
